package com.weixing.mall.provider.api.fallback;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.provider.api.model.vo.OrderAgentVo;
import com.weixing.mall.provider.api.service.OrderAgentServiceRpc;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author wx
 * @Date 2019/11/28 11:46
 * @Version 1.0
 */
@Component
public class OrderAgentServiceFallback implements OrderAgentServiceRpc {

    @Override
    public Result<List<OrderAgentVo>> selectByOrderId(Long orderId) {
        return ResultUtil.error("订单服务不可用");
    }
}
